package com.kfy.lifecycle2;

import android.util.Log;

import androidx.lifecycle.LifecycleService;

/**
 * @ProjectName: JetpackDemo
 * @Package: com.kfy.lifecycle2
 * @Author: K.F.Y
 * @Date: 2022/4/26
 */
public class MyLocationService extends LifecycleService {

    public MyLocationService() {
        Log.d("KFY","MyLocationService");
        MyLocationObserver myLocationObserver = new MyLocationObserver(this);
        getLifecycle().addObserver(myLocationObserver);
    }
}
